﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<?php echo base_url() ;?>"/>
<script language="javascript" type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
theme : "advanced",
plugins : "safari,pagebreak,style,table,advhr,advimage,advlink,emotions,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect,|,blockquote,forecolor,backcolor,|,styleprops",
theme_advanced_buttons3 : "tablecontrols,|,hr,|,replace,removeformat,visualaid,pagebreak,|,charmap,emotions,media,advhr,searchreplace,|,insertdate,inserttime,preview,||,preview,fullscreen,|,print",  
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
mode : "textareas",
skin: "o2k7",
language: "zh" 
});
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{
	margin:0;
	padding:0;
}
body {

	margin-left: 3px;
	background:#fff;
}
a{
	text-decoration:none;
	color: #344b50;
}
#add_article{
width:600px;
margin-top:5px;
font-size:12px;
margin-left:25px;
margin-bottom:5px;
}
#add_article h3{
	font-size:14px;
	padding-bottom:10px;
}
#add_article p{

margin-top:5px;

}
#add_article p label{
padding-right:5px;
}
#add_article p label span a{
	color:red;
}
margin-top:5px;

}
#article_source,#article_author{
background:#fff;
border:1px solid #abc6dd;
width:100px;
height:20px;
}
input[type=submit]{
width:90px;
height:25px;
 background:#efefef;
 border:1px solid #abc6dd;
}
#article_title{
background:#fff;
border:1px solid #abc6dd;
width:400px;
height:20px;
}
</style>
</head>
<body>
<div id="add_article">
<h3><a>添加文章</a></h3>
<p><label><span>所在目录&nbsp;<a><?foreach ($get_category_name as $row):?><?=$row->category_name?><?endforeach;?></a></span></label></p>
<form method="post" action="<?=site_url('admin/add_article_ok')?>">
<input type="hidden" name="category_id" value="<?=$row->category_id?>"/>
<p><label for="article_title">标题</label><input type="text" name="article_title" id="article_title"></p>
<p><label for="article_source">来源</label><input type="text" name="article_source" id="article_source" value="互联网"></p>
<p><label for="article_author">作者</label><input type="text" name="article_author" id="article_author" value="匿名"></p>
<p><label for="article_recommend">推荐</label><input type="checkbox" name="article_recommend" id="article_recommend" /></p>
<p><textarea rows="20" cols="50" name="article_content"></textarea></p>
<p><input type="submit" name="submit_article" value="发布内容"/></p>
</form>
</div>
</body>
</html>
